package com.mk.admin.service.impl;

import com.alibaba.fastjson2.JSONObject;
import com.mk.admin.model.ResultDto;
import com.mk.admin.model.query.ReserveSignInQuery;
import com.mk.admin.service.SignService;
import com.mk.admin.util.HttpTool;
import org.springframework.stereotype.Service;

@Service
public class SignServiceImpl implements SignService {
    @Override
    public ResultDto sign(ReserveSignInQuery query) {
        JSONObject jsonObject = HttpTool.postJson("opt_0023", query);
        Object result = jsonObject.get("result");
        return ResultDto.data(result);
    }
}
